package com.seasonsfood.mall.service.dispatch.api.service;

import com.seasonsfood.mall.core.service.BaseService;
import com.seasonsfood.mall.service.dispatch.api.domain.DispArea;
import com.seasonsfood.mall.service.dispatch.api.model.AreaTreeModel;
import com.seasonsfood.mall.util.constant.ResponseCode;
import com.seasonsfood.mall.util.model.ListResponse;

import java.util.List;

public interface DispAreaService extends BaseService<DispArea> {

    //添加区域
    ResponseCode addDispArea(DispArea dispArea);

    //根据区域id获得下级区域
    ListResponse<DispArea> getAreaList(Long id);

    //返回上一级
    ListResponse<DispArea> getParentList(Integer areaType);

    //列表模式获得区域树.到区
    List<AreaTreeModel> getDispAreaTree(Integer rank);

    //列表模式获得街道
    ListResponse<DispArea> getStreetList(String streetName,Integer parentId,Integer pageNum,Integer pageSize);


}
